package com.itheima.config;

import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration //设置这个类是配置类
@ComponentScan("com.itheima.service")//设置要扫描的包
@PropertySource("classpath:jdbc.properties")//设置要读取的配置文件
@Import({JdbcConfig.class,MybatisConfig.class}) //导入其他配置类
@EnableTransactionManagement
public class SpringConfig {
}
